import request from "@/utils/request";

//添加分组
export function addApiGroup(params) {
    return request({
        url: '/apigroup/create',
        method: 'post',
        data: params
    })
}

//获取项目分组
export function getApiGroup(projectId) {
    return request({
        url: '/apigroup/list',
        method: 'get',
        params: {
            projectId
        }

    })
}

export function deleteApiGroup(id) {
    return request({
        url: `/apigroup/delete/${id}`,
        method: 'delete'
    })
}

export function updateApiGroup(data) {
    return request({
        url: '/apigroup/update',
        method: 'post',
        data: data
    })
}